home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / linux / howto.uucp < prev    next >
Encoding:
Text File  |  1995-07-25  |  19.1 KB  |  608 lines

  1. Subject: Linux UUCP HOWTO
  2. Newsgroups: comp.os.linux.announce,comp.os.linux.admin,comp.answers,news.answers
  3. From: vince@victrola.wa.com (Vince Skahan)
  4. Date: Fri, 18 Nov 1994 17:41:53 GMT
  5.  
  6. Archive-name: linux/howto/uucp
  7. Last-modified: 26 Oct 94
  8.  
  9.   The Linux UUCP HOWTO
  10.   Vince Skahan, <vince@halcyon.com>
  11.   v1.11, 22 Oct 1994
  12.  
  13.   This document describes the setup and care+feeding of UUCP under
  14.   Linux.  You need to read this if you plan to connect to remote sites
  15.   via UUCP via a modem, via a direct-connection, or via Internet.  You
  16.   probably do *not* need to read this document if don't talk UUCP.
  17.  
  18.   1.  Introduction
  19.  
  20.   The intent of this document is to answer some of the questions and
  21.   comments that appear to meet the definition of "frequently asked
  22.   questions" about UUCP software under Linux in general, and the version
  23.   in the Linux SLS and Slackware distributions in particular.
  24.  
  25.   This document and the corresponding Mail and News "HOWTO" documents
  26.   collectively supersede the UUCP-NEWS-MAIL-FAQ that has previously been
  27.   posted to comp.os.linux.announce.
  28.  
  29.   1.1.  New versions of this document
  30.  
  31.   New versions of this document will be periodically posted to
  32.   comp.os.linux.announce, comp.answers, and news.answers.  They will
  33.   also be added to the various anonymous ftp sites who archive such
  34.   information including sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  35.  
  36.   In addition, you should be generally able to find this document on the
  37.   Linux WorldWideWeb home page at http://sunsite.unc.edu/mdw/linux.html
  38.   and on my home page at http://www.halcyon.com/vince/welcome.html.
  39.  
  40.  
  41.   1.2.  Feedback
  42.  
  43.   I am interested in any feedback, positive or negative, regarding the
  44.   content of this document via e-mail.  Definitely contact me if you
  45.   find errors or obvious omissions.
  46.  
  47.   I read, but do not necessarily respond to, all e-mail I receive.
  48.   Requests for enhancements will be considered and acted upon based on
  49.   that day's combination of available time, merit of the request, and
  50.   daily blood pressure :-)
  51.  
  52.   Flames will quietly go to /dev/null so don't bother.
  53.  
  54.   Feedback concerning the actual format of the document should go to the
  55.   HOWTO coordinator - Matt Welsh (mdw@sunsite.unc.edu).
  56.  
  57.  
  58.   1.3.  Copyright Information
  59.  
  60.   The UUCP-HOWTO is copyrighted (c)1994 Vince Skahan.
  61.  
  62.   A verbatim copy may be reproduced or distributed in any medium
  63.   physical or electronic without permission of the author.  Translations
  64.   are similarly permitted without express permission if it includes a
  65.   notice on who translated it.
  66.  
  67.   Short quotes may be used without prior consent by the author.
  68.   Derivative work and partial distributions of the UUCP-HOWTO must be
  69.   accompanied with either a verbatim copy of this file or a pointer to
  70.   the verbatim copy.
  71.  
  72.   Commercial redistribution is allowed and encouraged; however, the
  73.   author would like to be notified of any such distributions.
  74.  
  75.   In short, we wish to promote dissemination of this information through
  76.   as many channels as possible. However, we do wish to retain copyright
  77.   the HOWTO documents, and would like to be notified of any plans to
  78.   redistribute the HOWTOs.
  79.  
  80.   We further want that ALL information provided in the HOWTOS is
  81.   disseminated.  If you have questions, please contact Matt Welsh, the
  82.   Linux HOWTO coordinator, at mdw@sunsite.unc.edu, or +1 607 256 7372.
  83.  
  84.  
  85.   1.4.  Standard Disclaimer
  86.  
  87.   Of course, I disavow any potential liability for the contents of this
  88.   document.  Use of the concepts, examples, and/or other content of this
  89.   document is entirely at your own risk.
  90.  
  91.  
  92.   1.5.  Other sources of information
  93.  
  94.   1.5.1.  Linux HOWTO Documents
  95.  
  96.   There is plenty of exceptional material provided in the other Linux
  97.   HOWTO documents and from the Linux DOC project.  In particular, you
  98.   might want to take a look at the following:
  99.  
  100.  
  101.   o  the Serial Communications HOWTO
  102.  
  103.   o  the Ethernet HOWTO
  104.  
  105.   o  the Linux Networking Administrators' Guide
  106.  
  107.  
  108.   1.5.2.  USENET
  109.  
  110.   comp.mail.uucp can answer most of your UUCP questions
  111.  
  112.   1.5.3.  Mailing Lists
  113.  
  114.   There is a Taylor UUCP mailing list.
  115.  
  116.   To join (or get off) the list, send mail to
  117.  
  118.                 taylor-uucp-request@gnu.ai.mit.edu
  119.  
  120.  
  121.  
  122.   This request goes to a person, not to a program, so please make sure
  123.   that you include the address at which you want to receive mail in the
  124.   text of the message.
  125.  
  126.   To send a message to the list, send it to
  127.  
  128.                taylor-uucp@gnu.ai.mit.edu
  129.  
  130.  
  131.  
  132.  
  133.   1.5.4.  Books
  134.  
  135.   HDB and V2 versions of UUCP are documented in about every vendor's
  136.   documentation as well as in almost all *nix communications books.
  137.  
  138.   Taylor config files are currently only documented in the info files
  139.   provided with the sources (and in the SLS distribution hopefully).  To
  140.   read them, you can grab the nice "infosrc" program from the SLS "s"
  141.   disks and compile it.
  142.  
  143.   The following is a non-inclusive set of books that will help.
  144.  
  145.   o  "Managing UUCP and USENET" from O'Reilly and Associates is in my
  146.      opinion the best book out there for figuring out the programs and
  147.      protocols involved in being a USENET site.
  148.  
  149.   o  "Unix Communications" from The Waite Group contains a nice
  150.      description of all the pieces (and more) and how they fit together.
  151.  
  152.   o  "Practical Unix Security" from O'Reilly and Associates has a nice
  153.      discussion of how to secure UUCP in general.
  154.  
  155.   o  "The Internet Complete Reference" from Osborne is a fine reference
  156.      book that explains the various services available on Internet and
  157.      is a great source for information on news, mail, and various other
  158.      Internet resources.
  159.  
  160.   o  "The Linux Networking Administrators' Guide" from Olaf Kirch of the
  161.      Linux DOC Project is available on the net and is also published by
  162.      (at least) O'Reilly and SSC.  It makes a fine one-stop shopping to
  163.      learn about everything you ever imagined you'd need to know about
  164.      Unix networking.
  165.  
  166.  
  167.   1.6.  Where *NOT* to look for help
  168.  
  169.   There is nothing "special" about configuring and running UUCP under
  170.   Linux (any more).  Accordingly, you almost certainly do *NOT* want to
  171.   be posting generic UUCP-related questions to the comp.os.linux.*
  172.   newsgroups.
  173.  
  174.   Unless your posting is truly Linux-specific (ie, "please tell me what
  175.   config file support is built into the binaries for Taylor uucp v1.04
  176.   in SLS v1.02"), you should be asking your questions in comp.mail.uucp
  177.   or on the Taylor UUCP mailing list as indicated above.
  178.  
  179.   Let me repeat that.
  180.  
  181.   There is virtually no reason to post anything uucp-related in the
  182.   comp.os.linux hierarchy any more.  There are existing newsgroups in
  183.   the comp.mail.* hierarchy to handle *ALL* your questions.
  184.  
  185.   IF YOU POST TO COMP.OS.LINUX.* FOR NON-LINUX-SPECIFIC QUESTIONS, YOU
  186.   ARE LOOKING IN THE WRONG PLACE FOR HELP.  THE UUCP EXPERTS HANG OUT IN
  187.   THE PLACES INDICATED ABOVE AND GENERALLY DO NOT RUN LINUX.
  188.  
  189.   POSTING TO THE LINUX HIERARCHY FOR NON-LINUX-SPECIFIC QUESTIONS WASTES
  190.   YOUR TIME AND EVERYONE ELSE'S AND IT FREQUENTLY DELAYS YOU FROM
  191.   GETTING THE ANSWER TO YOUR QUESTION.
  192.  
  193.  
  194.   2.  Hardware Requirements
  195.  
  196.  
  197.   There are no specific hardware requirements for UUCP under Linux.
  198.   Basically any Hayes-compatible modem works painlessly with UUCP.
  199.  
  200.   In most cases, you'll want the fastest modem you can afford.  In
  201.   general, you want to have a 16550 UART on your serial board or built
  202.   into your modem to handle speeds of above 9600 baud.
  203.  
  204.   If you don't know what that last sentence means, please consult the
  205.   comp.dcom.modems group or the various fine modem and serial
  206.   communications FAQs and periodic postings on USENET.
  207.   3.  Getting UUCP
  208.  
  209.   Taylor UUCP (current version 1.05) is available on prep.ai.mit.edu in
  210.   source form and in various Linux distributions in binary form.
  211.  
  212.   The newspak-2.4.tar.z distribution contains config files and readme
  213.   files related to building uucp, news, and mail software under Linux
  214.   from the various freely-available sources.  It can usually be found on
  215.   sunsite.unc.edu in the directory /pub/Linux/system/Mail/news.  If you
  216.   can't find it on sunsite, please send me mail and I'll make sure you
  217.   get a copy of it.
  218.  
  219.  
  220.   4.  Installing the Software
  221.  
  222.   (Much of this section is taken verbatim from the README file in the
  223.   Taylor UUCP v1.05 sources - it's provided here so I can help you
  224.   "rtfm" instead of just telling you to do so)
  225.  
  226.   Detailed compilation instructions are in uucp.texi in the sources.
  227.  
  228.   You can grab "known good" conf.h and policy.h files for Linux from the
  229.   newspak distribution referred to in the "other sources of information"
  230.   section above.  In that case, you can probably go right to typing
  231.   "make".
  232.  
  233.  
  234.   4.1.  Extracting the compressed sources
  235.  
  236.   To extract a gzip'd tar archive, I do the following:
  237.  
  238.                   gunzip -c filename.tar.z | tar xvf -
  239.  
  240.  
  241.   A "modern" tar can just do a:
  242.  
  243.                  tar -zxvf filename.tgz
  244.  
  245.  
  246.  
  247.   4.2.  Edit Makefile.in to set installation directories.
  248.  
  249.   Here, I set "prefix" to "/usr" rather than the default of "/usr/local"
  250.  
  251.  
  252.   4.3.  Run "configure"
  253.  
  254.   Type "sh configure".
  255.  
  256.   The configure script will compile a number of test programs to see
  257.   what is available on your system and will calculate many things.
  258.  
  259.   The configure script will create conf.h from conf.h.in and Makefile
  260.   from Makefile.in.  It will also create config.status, which is a shell
  261.   script which actually creates the files.
  262.  
  263.  
  264.   o  Rather than editing the Makefile.in file in the sources as
  265.      indicated above, you can get the same effect by:
  266.  
  267.              "configure --prefix=/usr/lib"
  268.  
  269.  
  270.  
  271.  
  272.  
  273.   4.4.  Configure the future setup of the software
  274.  
  275.  
  276.   4.4.1.  Examine conf.h and Makefile to make sure they're right.
  277.  
  278.   I took the defaults
  279.  
  280.   4.4.2.  Edit policy.h for your local system.
  281.  
  282.  
  283.   o  - set the type of lockfiles you want (HAVE_HDB_LOCKFILES)
  284.  
  285.   o  - set the type of config files you want built in
  286.      (HAVE_TAYLOR_CONFIG, HAVE_V2_CONFIG, HAVE_HDB_CONFIG)
  287.  
  288.   o  - set the type of spool directory structure you want (SPOOLDIR_HDB)
  289.  
  290.   o  - set the type of logging you want (HAVE_HDB_LOGGING)
  291.  
  292.   o  - set the default search path for commands (I added /usr/local/bin
  293.      to mine)
  294.  
  295.   4.5.  Compile and install the software
  296.  
  297.  
  298.   o  Type "make".
  299.  
  300.   o  Use "uuchk | more" to check configuration files.  You can use
  301.      "uuconv" to convert between configuration file formats.
  302.  
  303.   o  Type "make install" to install.
  304.  
  305.   4.6.  Set up the config files
  306.  
  307.   I'd recommend you start by taking the attached known-good config files
  308.   for HDB mode and installing them.
  309.  
  310.   o  Make sure that the Permissions file indicates exactly where rmail
  311.      and rnews are to be found if you put them anywhere other than in
  312.      the path you specified in policy.h
  313.  
  314.   o  Make sure that your Devices files matches the actual location of
  315.      your modem (cua1=COM2 in the examples)
  316.  
  317.   o  Edit the Systems file to set up the system(s) you talk to with
  318.      their speed, phone number, username, and password.
  319.  
  320.      *PROTECT THIS FILE AGAINST WORLD READ*
  321.  
  322.   o  Set up the Permissions file and add a set of lines for each site
  323.      you talk to.  For security reasons, it's recommended to make sure
  324.      they each have a separate account (if you allow dialin) and home
  325.      directory so you can track things.
  326.  
  327.  
  328.   4.7.  Give it a try
  329.  
  330.  
  331.  
  332.           /usr/lib/uucp/uucico -r 1 -x 9 -s remote_system_name
  333.  
  334.  
  335.  
  336.   The -x 9 will have maximum debugging information written to the
  337.   /usr/spool/uucp/.Admin/audit.local file for help in initial setup.
  338.  
  339.   I normally run -x 4 here since that level logs details that help me
  340.   with login problems.  Obviously, this contains cleartext information
  341.   from your Systems file (account/password) so protect it against world-
  342.   read.
  343.  
  344.  
  345.   o  from Pierre.Beyssac@emeraude.syseca.fr
  346.  
  347.      Taylor has more logging levels.  Use -x all to get the highest
  348.      level possible.
  349.  
  350.      Also, do a "tail -f /usr/spool/uucp/.Admin/audit.local" while
  351.      debugging to watch things happen on the fly.
  352.  
  353.   4.8.  It doesn't work - now what ?
  354.  
  355.   In general, you can refer to the documentation mentioned above if
  356.   things don't work.  You can also refer to your more experienced UUCP
  357.   neighbors for help.  Usually, it's something like a typo anyway.
  358.  
  359.  
  360.   5.  Frequently Asked Questions about Linux UUCP
  361.  
  362.  
  363.  
  364.   5.1.  Why is my binary of uucp configured in HDB rather than "Taylor"
  365.   mode?
  366.  
  367.   (religious mode on - I know some people are just as religious about
  368.   "ease of use" as I am about "being standard".  That's why they make
  369.   source code you can build your own from :-) )
  370.  
  371.   Because IMHO it's the de-facto standard UUCP implementation at this
  372.   time.  There are thousands of sites with experienced admins and there
  373.   are many places you can get incredibly good information concerning the
  374.   HDB setup.
  375.  
  376.   The uucp-1.04 that's in SLS 1.02 and later has all three modes of
  377.   config files built in.  While I can't test it, I did "rtfm" and Ian
  378.   Taylor tells me that it should work.
  379.  
  380.   The search order for config files is Taylor then V2 (L.sys)  then HDB.
  381.   Use the uuconv utility in /usr/lib/uucp to convert config files from
  382.   one mode to another.
  383.  
  384.   If you can't wait, grab the sources for uucp and specify
  385.   HAVE_BNU_CONFIG, HAVE_V2_CONFIG *and* HAVE_TAYLOR_CONFIG in the
  386.   policy.h file and type "make".
  387.  
  388.   The following workaround is ugly, but it does work, if you want to run
  389.   Taylor configs from binaries that don't have it built in.
  390.  
  391.   o  From mbravo@tctube.spb.su (Michael E. Bravo)
  392.  
  393.      - add  "-I /usr/local/lib/uucp/config" to _every_ invocation of
  394.      whatever program in uucp package
  395.  
  396.   5.2.  Why do I get "timeout" on connections when I upgraded to
  397.   uucp-1.04 ?
  398.  
  399.  
  400.   o  from Ed Carp - erc@apple.com
  401.  
  402.      If you use a "Direct" device in the Devices file, there's now a 10
  403.      second timeout compiled in.  Make the name of the Device anything
  404.      other than "Direct".  If you tweak the example /usr/lib/uucp files
  405.      provided with SLS, you won't have problems with this one.
  406.  
  407.   o  from Greg Naber - greg@squally.halcyon.com
  408.  
  409.      If you get chat script timeouts, you can tweak the sources by
  410.      editing at line 323 in uuconf/syssub.c and changing the default
  411.      timeouts from 10 seconds to something larger.
  412.  
  413.   o  from Ed Rodda - ed@orca.wimsey.bc.ca
  414.  
  415.      If you get chat script timeouts, typically connecting to other
  416.      Taylor sites, a pause after login can fix this.
  417.  
  418.      feed Any ACU,ag 38400 5551212 ogin: \c\d "" yourname word: passwd
  419.  
  420.  
  421.  
  422.   o  from Dr. Eberhard W. Lisse - el@lisse.NA
  423.  
  424.      Some kernels experience modems hanging up after a couple of
  425.      seconds.  The following patch sent by Ian Taylor might help.
  426.  
  427.      *** conn.c.orig Mon Feb 22 20:25:24 1993
  428.      --- conn.c      Mon Feb 22 20:33:10 1993
  429.      ***************
  430.      *** 204,209 ****
  431.      --- 204,212 ----
  432.  
  433.           /* Make sure any signal reporting has been done before we set
  434.             fLog_sighup back to TRUE.  */
  435.      +   /* SMR: it seems to me if we don't care about SIGHUPS, we should clear
  436.      +      the flag before we return  */
  437.      +   afSignal[INDEXSIG_SIGHUP] = FALSE;
  438.          ulog (LOG_ERROR, (const char *) NULL);
  439.          fLog_sighup = TRUE;
  440.  
  441.  
  442.  
  443.   5.3.  Why doesn't HDB anonymous uucp seem to work ?
  444.  
  445.   The SLS anonymous uucp only works in Taylor mode because it's compiled
  446.   with HAVE_TAYLOR_CONFIG.  If you want to do anon uucp in HDB mode,
  447.   you'll have to recompile the sources with just HDB defined.  Ian
  448.   Taylor is considering which way to deal with this "feature".
  449.  
  450.   Also, Taylor in HDB mode seems to be sensitive to white space and
  451.   blank lines.  To be safe, make sure that there are no blank lines or
  452.   trailing spaces in the Permissions file.
  453.  
  454.   Lastly, make sure that you have a file called remote.unknown in
  455.   /usr/lib/uucp and that it's *NOT* executable.  See the O'Reilly+Assoc
  456.   book "Managing UUCP and USENET" for details regarding this file.
  457.  
  458.  
  459.   5.4.  What does "no matching ports found" mean ?
  460.  
  461.   In all probability, you are attempting to use a device
  462.   (/usr/lib/uucp/Devices) that doesn't exist, or the device you've
  463.   specified in the /usr/lib/uucp/Systems file doesn't match up with any
  464.   valid devices in the Devices file.
  465.  
  466.   Following this are *sanitized* versions of my working Taylor 1.05 HDB
  467.   config files that you can plug in and use.
  468.  
  469.   note the "ACU" in the Systems ?  That tells which "port" to use in
  470.   Devices
  471.   see the "scout" word in Systems ?  That tells which dialer to use in
  472.   Dialers.
  473.  
  474.   If you had a ACU port, but none that matched the specified dialer on
  475.   the same line in Systems, you'll get that message.
  476.  
  477.  
  478.   5.5.  What are known good config files for HDB mode ?
  479.  
  480.   The following are "known-good" config files for Taylor 1.05 under
  481.   Linux in HoneyDanBer mode.  They work on kernels of 0.99-8 or later.
  482.   All files should be in /usr/lib/uucp unless you've tweaked the sources
  483.   to put the uucp library elsewhere.
  484.  
  485.   If you *HAVE* put things in non-standard places, be aware that things
  486.   like sendmail might get very confused. You need to ensure that all
  487.   communications-related programs agree on your idea of "standard"
  488.   paths.
  489.  
  490.   If you're running a kernel of 0.99-7 or earlier, change "cua1" to
  491.   "ttyS1".
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.   #------------- Devices -------------
  538.   # make sure the device (cua1 here) matches your system
  539.   # cua1 = COM2
  540.   #
  541.   # here "scout" is the Digicom Scout Plus 19.2 modem I use
  542.   # tbfast etc. is for a Telebit Trailblazer Plus modem's various speeds
  543.   #
  544.   ACU cua1 - 19200 scout
  545.   ACU cua1 - 9600 tbfast
  546.   ACU cua1 - 1200 tbslow
  547.   ACU cua1 - 2400 tbmed
  548.  
  549.   #------------- dialers --------------
  550.   # note the setting of the Trailblazer registers "on the fly"
  551.   # "scout" is a Digicom Scout Plus (Hayes-like) modem I use here
  552.   #
  553.   scout   =W-,    "" ATM0DT\T CONNECT
  554.   tbfast  =W-,    "" A\pA\pA\pT OK ATS50=255DT\T CONNECT\sFAST
  555.   tbslow  =W-,    "" A\pA\pA\pT OK ATS50=2DT\T CONNECT\s1200
  556.   tbmed   =W-,    "" A\pA\pA\pT OK ATS50=3DT\T CONNECT\s2400
  557.  
  558.   #-------------- Systems -------------
  559.   # this is a very generic entry that will work for most systems
  560.   #
  561.   # the Any;1 means that you can call once per minute with using -f (force)
  562.   # the ACU,g means force "g" protocol rather than Taylor's default "i"
  563.   #
  564.   fredsys Any;1 ACU,g 19200 scout5555555 "" \r ogin:--ogin: uanon word: uanon
  565.  
  566.   #-------------------------------- Permissions -------------------------
  567.  
  568.   # Taylor UUCP in HDB mode appears to be sensitive to blank lines.
  569.   # Make sure all Permissions lines are real or commented out.
  570.   #
  571.   # this is a anonymous uucp entry
  572.   #
  573.   LOGNAME=nuucp MACHINE=OTHER \
  574.   READ=/usr/spool/uucp/nuucp \
  575.   WRITE=/usr/spool/uucp/nuucp \
  576.   SENDFILES=yes REQUEST=yes \
  577.   COMMANDS=/bin/rmail
  578.   #
  579.   # this is a normal setup for a remote system that talks to us
  580.   # note the absolute path to rnews since this site puts things
  581.   # in locations that aren't "standard"
  582.   #
  583.   LOGNAME=fredsys MACHINE=fredsys \
  584.   READ=/usr/spool/uucp/fredsys:/usr/spool/uucp/uucppublic:/files \
  585.   WRITE=/usr/spool/uucp/fredsys:/usr/spool/uucppublic \
  586.   SENDFILES=yes REQUEST=yes \
  587.   COMMANDS=/bin/rmail:/usr/local/lib/news/bin/rnews
  588.   #----------------------------------------------------------------------
  589.  
  590.  
  591.  
  592.   5.6.  Getting uucico to call alternate numbers
  593.  
  594.   The new v1.05 has an added '-z' switch to uucico that will try
  595.   alternate numbers for a remote system.
  596.  
  597.   6.  Acknowledgements
  598.  
  599.  
  600.   The following people have helped in the assembly of the information
  601.   (and experience) that helped make this document possible:
  602.  
  603.   Ed Carp, Steve Robbins, Ian Taylor, Greg Naber, Matt Welsh, Pierre
  604.   Beyssac
  605.  
  606.   If I forgot anybody, my apologies.
  607.  
  608.